//
//  TGChooseVideoView.h
//  TongGuanLease
//
//  Created by 张奇 on 2022/8/29.
//

#import <UIKit/UIKit.h>
#import "TGEnumDefine.h"
@class TGUrlInfoModel;
///collectionView宽度
#define PhotoCollectionViewWidth (SCREEN_WIDTH-TableViewSpace*2)
///根据行数获取 collectionView高度
#define PhotoCollectionViewHeight(R) ((PhotoCollectionViewWidth-TableViewSpace*3.0)/4.0*R+TableViewSpace*(R-1))

NS_ASSUME_NONNULL_BEGIN
@protocol TGChooseVideoViewDelegate <NSObject>

- (void)tgChooseVideoViewDidSelectvideoUrlInfoArray:(NSArray <TGUrlInfoModel *>* _Nonnull)videoUrlInfoArray;

@end

@interface TGChooseVideoView : UIView

- (instancetype)initWithMaxCount:(NSInteger)maxCount
                 uploadImageType:(UploadImageType)uploadImageType
                        delegate:(id<TGChooseVideoViewDelegate>)delegate;

@property (assign, nonatomic) id<TGChooseVideoViewDelegate> delegate;
@property (nonatomic, assign) NSInteger maxCount;
@property (assign, nonatomic) UploadImageType uploadVideoType;
///已经选中的图片model数组
@property (strong, nonatomic) NSArray <TGUrlInfoModel *>*selectVideoUrlInfoArray;

@end

NS_ASSUME_NONNULL_END
